/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package sda.levelup.lists.hashs;

import java.util.HashMap;
import java.util.Iterator;

/**
 *
 * @author user
 */
public class Storage
{
    HashMap<String, Account> map;

    public Storage()
    {
        this.map = new HashMap<String, Account>();
    }
    
    
    public void put(String sername, Account ac){
       map.put(sername, ac);
    }
    public double get(String id){
        return map.get(id).getMoney();
    }
    
    
   
    
}
